var HelloWorld = React.createClass({
    getInitialState: function () {
        return {
            name: '',
            age: ''
        };
    },
    componentDidMount: function () {
        $.get(this.props.url, function (data) {
            if (this.isMounted()) {
                this.setState({
                    name: data.name,
                    age: data.age
                });
            }
        }.bind(this));
    },
    render: function () {
        return (
            <div>
                {this.state.name + '//' + this.state.age}
            </div>
        );
    }
});

ReactDOM.render(<HelloWorld url="/ajax"/>, document.getElementById('dom'));